﻿<?xml version="1.0" encoding="utf-8"?>
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:js="http://www.codeplex.com/JSClientPages/JSElements">
    <head>
        <title>A sample JSCP page</title>
        <meta name="JSClientPage" content="sample" />
    </head>
    <body>
        <h2>
            Table Generation Result
        </h2>
        <h3>Table Parameters</h3>
        <p>
            You requested a table with <?js text(input.rows); ?> rows and
            <?js text(input.columns); ?> columns
        </p>

        <h3>The Table</h3>
        <p>Here is the table you requested</p>            
        <table class="grid">
            <?js for(var i = 1; i <= input.rows; i++) { ?>
            <tr>
                <?js for (var j=1; j <= input.columns; j++) { ?>
                <td>
                    <?js text(i + ',' + j); ?>
                </td>
                <?js } ?>
            </tr>
            <?js } ?>
        </table>

    </body>
</html>

